//
//  RMMNagationView.m
//  Romomo
//
//  Created by puman on 16/10/8.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMNagationView.h"

@implementation RMMNagationView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = kWhiteColor;
        _backButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _backButton.frame = CGRectMake(12, 30, 80, 24);
       // [_backButton setTitle:@"取消    " forState:(UIControlStateNormal)];
        [_backButton setTitleColor:COLORFROMCODE(0x9B9B9B, 1) forState:(UIControlStateNormal)];
        _backButton.userInteractionEnabled = NO;
        [self addSubview:_backButton];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(_backButton.right, _backButton.top, kScreenWideth - 2 * _backButton.right, _backButton.height)];
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = COLORFROMCODE(0x303137, 1);
        label.text = @"选择地区";
        label.font = kBFont(18);
        [self addSubview:label];
        
        UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.height - 0.5, kScreenWideth, 0.5)];
        lineLabel.backgroundColor = RGBA(221, 221, 221, 1);
        [self addSubview:lineLabel];
        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
